# -*- coding: utf-8 -*-
# @Time     : 2021/4/18 19:26
# @Author   : pengrenjie
# @Email    : 941257162@.com
# @File     : 17.py
# while 1:
#
#     try:
#         num = int(input("请输入数字:"))
#         if num > 0:
#             print(num)
#             break
#         else:
#             print("輸入的不是正整数，请重新输入")
#     except ValueError :
#
#         print("輸入的不是整数")
#
import re
while 1:
    num = input("请输入数字:")
    if re.findall(r"^\+?0*[1-9]\d*$",num):
        print("是正整数")
    else:
        print("不是正整数")











